package com.itic.appbase.framework.type;

public enum CollageType {

    Common("common","普通拼团"),Ladder("ladder","阶梯拼团");
    private String type;
    private String name;

    CollageType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static CollageType getCollageType(String type){
        CollageType CollageType =null;
        switch (type){
            case "common":
                CollageType = CollageType.Common;
                break;
            case "ladder":
                CollageType = CollageType.Ladder;
                break;
        }
        return CollageType;
    }
}
